#!/usr/bin/env python
# -*- coding: utf-8 -*-
#coding=utf8

# 本文件由自动工具 proto.py 自动生成，请勿修改
# filename msg7000_csbuf.py
# package ptl

from ptl.base_csbuf import *


# message Req7001
class Req7001:
	def __init__(self):
		self.protoid = 7001
		self.equipId = 0

	def Marshal(writer):
		writer.setUint32(self.equipId, 1)

	def Unmarshal( reader):
		self.equipId = reader.getUint32(1)
# message Resp7001
class Resp7001:
	def __init__(self):
		self.protoid = 7001
		self.status = 0

	def Marshal(writer):
		writer.setUint8(self.status, 1)

	def Unmarshal( reader):
		self.status = reader.getUint8(1)
# message Req7002
class Req7002:
	def __init__(self):
		self.protoid = 7002
		self.equipId = 0

	def Marshal(writer):
		writer.setUint32(self.equipId, 1)

	def Unmarshal( reader):
		self.equipId = reader.getUint32(1)
# message Resp7002
class Resp7002:
	def __init__(self):
		self.protoid = 7002
		self.status = 0

	def Marshal(writer):
		writer.setUint8(self.status, 1)

	def Unmarshal( reader):
		self.status = reader.getUint8(1)
# message Req7003
class Req7003:
	def __init__(self):
		self.protoid = 7003
		pass

	def Marshal(writer):
		pass

	def Unmarshal( reader):
		pass
# message Resp7003
class Resp7003:
	def __init__(self):
		self.protoid = 7003
		self.value = []

	def Marshal(writer):
		countvalue = len(self.value)
		writer.setArray(countvalue, 1)
		for i in range(countvalue):
			writer.setMessage(0)
			self.value[i].Marshal(writer)
			writer.endSetMessage()

	def Unmarshal( reader):
		for i in range(reader.getArray(1)):
			msg = EquipInfo() 
			reader.getMessage(0)
			msg.Unmarshal(reader)
			reader.endGetMessage()
			self.value.append(msg)
